﻿namespace SourceCodeRepository.Web.Tests.Controllers
{
    using Web.Controllers.Home;
    using System.Web.Mvc;
    using Xunit;

    public class HomeControllerFacts
    {
        public class Index
        {
            [Fact]
            public void Test_Controller_Can_Show_Default_View()
            {
                var controller = new HomeController();
                var viewResult = controller.ShowView();
                var res = (ViewResult)viewResult;

                Assert.Equal("Index", res.ViewName);
            }
        }
    }
}